//清除展开的菜单及选中的菜单列表项目
var $p = $(".panel");
$('a[data-toggle="collapse"]', $p).attr("aria-expanded", "false");
$(".collapse").removeClass("in");
$(".collapse a", $p).removeClass("active");

//处理当前选中的菜单列表项，并展开所在的菜单
var url = location.href;
if(url.indexOf(".jsp") != -1){
	url = url.substring(url.indexOf("/mng") + 4, url.lastIndexOf("/"));
}else{
	url = url.substring(url.lastIndexOf("/"), url.lastIndexOf("_"));
}
//alert(url);
if(url && "" != url){
	var $selected = $(".collapse a[href*='"+ url+"']");
	var $pp = $selected.parent();
	$pp.addClass("active");
	$pp.parent().addClass("in");
	$('a[data-toggle="collapse"]', $pp.parent().parent()).attr("aria-expanded", "true");
}